JBoss Community Archive (Read Only)

Teiid 8.3

Security Functions

Security functions provide the ability to interact with the security system.

HASROLE

Whether the current caller has the Teiid data role roleName.

hasRole([roleType,] roleName)

roleName must be a string, the return type is boolean.

The two argument form is provided for backwards compatibility. roleType is a string and must be 'data'.

Role names are case-sensitive and only match Teiid Data Roles. JAAS roles/groups names are not valid for this function - unless there is corresponding data role with the same name.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:38:12 UTC, last content change 2013-03-14 16:28:33 UTC.